import request from '@/utils/request'

// 查询处罚查询列表
export function listStupunment(query) {
  return request({
    url: '/stuinfo/stupunment/list',
    method: 'get',
    params: query
  })
}

// 查询处罚查询详细
export function getStupunment(punishmentId) {
  return request({
    url: '/stuinfo/stupunment/' + punishmentId,
    method: 'get'
  })
}

// 新增处罚查询
export function addStupunment(data) {
  return request({
    url: '/stuinfo/stupunment',
    method: 'post',
    data: data
  })
}

// 修改处罚查询
export function updateStupunment(data) {
  return request({
    url: '/stuinfo/stupunment',
    method: 'put',
    data: data
  })
}

// 删除处罚查询
export function delStupunment(punishmentId) {
  return request({
    url: '/stuinfo/stupunment/' + punishmentId,
    method: 'delete'
  })
}
